PDA

View Full Version : Flight Dynamics Model in Delphi/C/C++


Lora Lee
July 26th 05, 01:17 PM
FMS is one of the freeware high-quality flight simulator for model
airplanes. It is written in Delphi language with some third party
components.
You can download it from http://n.ethz.ch/student/mmoeller/fms/index_e.html

My question is about the "flight dynamic model" of FMS and/or other similar
simulators.
Do you know any Delphi and/or C/C++ flight dynamics model code which takes
the rudder, elevator, throttle, aileron, airplane's position, velocity and
attitude (roll, pitch, yaw angles) as inputs and calculates the airplane's
next position, velocity and attitude?


Flight Dynamics Model :
==================
INPUTS:
Time increment :
dT (delta T in milli second)
Control inputs :
Rudder
Elevator
Throttle
Aileron
Airplane's current state :
Position (in 3D. ie X,Y,Z)
Velocity (in 3D, Vx, Vy,Vz)
Attitude (in 3D, Roll, Pitch, Yaw angles)
Airplane's constants:
Wing span
Weight
????
????
etc..
OUTPUT:
Airplane's next state after dT :
Position (in 3D. ie X,Y,Z)
Velocity (in 3D, Vx, Vy,Vz)
Attitude (in 3D, Roll, Pitch, Yaw angles)

Erik Hofman
July 26th 05, 03:20 PM
Lora Lee wrote:

> My question is about the "flight dynamic model" of FMS and/or other similar
> simulators.
> Do you know any Delphi and/or C/C++ flight dynamics model code which takes
> the rudder, elevator, throttle, aileron, airplane's position, velocity and
> attitude (roll, pitch, yaw angles) as inputs and calculates the airplane's
> next position, velocity and attitude?

JSBSim:
http://www.jsbsim.org

Erik

Grandss
August 12th 05, 09:54 AM
Lora Lee a écrit :
> FMS is one of the freeware high-quality flight simulator for model
> airplanes. It is written in Delphi language with some third party
> components.
> You can download it from http://n.ethz.ch/student/mmoeller/fms/index_e.html
>
> My question is about the "flight dynamic model" of FMS and/or other similar
> simulators.
> Do you know any Delphi and/or C/C++ flight dynamics model code which takes
> the rudder, elevator, throttle, aileron, airplane's position, velocity and
> attitude (roll, pitch, yaw angles) as inputs and calculates the airplane's
> next position, velocity and attitude?
>
>
> Flight Dynamics Model :
> ==================
> INPUTS:
> Time increment :
> dT (delta T in milli second)
> Control inputs :
> Rudder
> Elevator
> Throttle
> Aileron
> Airplane's current state :
> Position (in 3D. ie X,Y,Z)
> Velocity (in 3D, Vx, Vy,Vz)
> Attitude (in 3D, Roll, Pitch, Yaw angles)
> Airplane's constants:
> Wing span
> Weight
> ????
> ????
> etc..
> OUTPUT:
> Airplane's next state after dT :
> Position (in 3D. ie X,Y,Z)
> Velocity (in 3D, Vx, Vy,Vz)
> Attitude (in 3D, Roll, Pitch, Yaw angles)
>
>

you can look this
http://examples.oreilly.com/physicsgame/flightsim.zip

Lora Lee
August 14th 05, 03:44 AM
Grandss,

Thank you for the link.

Lora Lee

> you can look this
> http://examples.oreilly.com/physicsgame/flightsim.zip

Grandss
August 14th 05, 07:42 AM
Lora Lee a écrit :
> Grandss,
>
> Thank you for the link.
>
> Lora Lee
>
>
>>you can look this
>>http://examples.oreilly.com/physicsgame/flightsim.zip
>
>
>
Hi Lora Lee,

i try this code, but there is a little problem with the pitch down
(plane stall when you use it).
If you find why, thanks to tell me ?

Grandss

Google